package ch02;
import java.util.Scanner;
/**
 * Created by hasee on 2017/6/15.
 */
public class coin {
    public static void main(String[] args) {
  float a,b,c,d,e,f;
  Scanner scan = new Scanner(System.in);
  System.out.println("1分硬币个数为：");
  a = scan.nextInt();
  System.out.println("2分硬币个数为：");
  b = scan.nextInt();
  System.out.println("5分硬币个数为：");
  c = scan.nextInt();
  System.out.println("1角硬币个数为：");
  d = scan.nextInt();
  System.out.println("5角硬币个数为：");
  e = scan.nextInt();
  System.out.println("1元硬币个数为：");
  f = scan.nextInt();

final double g = (a*0.01)+(b*0.02)+(c*0.05)+(d*0.1)+(e*0.5)+f;
  System.out.println("人民币数值为："+g);
    }
}
